import popup from './index.vue'
import Vue from 'vue'
export default {
	open(params) {
		const Profile = Vue.extend(popup)
		const instance = new Profile()
		instance._props._specia = params
		instance.vm = instance.$mount()
		  const lastElementChild = document.body.lastElementChild
		 if (lastElementChild.className === 'invite-box') return
		 instance._props.Profile = instance.vm.$el
	    setTimeout(() => document.body.appendChild(instance.vm.$el))
		return instance
	}
}